package com.he.buildermodel;

import com.he.buildermodel.builder.concretebuilder.Concretebuilder;
import com.he.buildermodel.builder.concretebuilder.Concretebuilder1;
import com.he.buildermodel.director.CarDirector;
import com.he.buildermodel.product.Car;
import com.he.buildermodel.product.HouseCar;

public class Client {
    public static void main(String[] args) {
        Car car = new CarDirector<Car>(new Concretebuilder(new Car())).buildCar();
        System.out.println(car);
        Car houseCar = new CarDirector<HouseCar>(new Concretebuilder1(new HouseCar())).buildCar();
        System.out.println(houseCar);
    }
}
